package com.youbff.task.core.task;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.JobListener;

/**
 * 集群客户端任务监听
 * @author lixuefeng
 * @email youbff@163.com
 * @time 2018年1月29日 下午3:47:54
 */
public class ClientClusterTaskListener implements JobListener {

    private String serName;
    
    public ClientClusterTaskListener(String serName){
        this.serName = serName;
    }
    
    @Override
    public String getName() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public void jobToBeExecuted(JobExecutionContext context) {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void jobExecutionVetoed(JobExecutionContext context) {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void jobWasExecuted(JobExecutionContext context,
            JobExecutionException jobException) {
        // TODO Auto-generated method stub
        System.out.println("listener......"+serName);
    }

}
